package com.tnr.scgcxx.service.plan.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tnr.scgcxx.dao.plan.ManagerDao;
import com.tnr.scgcxx.model.bus.Plan;
import com.tnr.scgcxx.service.plan.ManagerService;

@Service
public class ManagerServiceImpl implements ManagerService {
	@Autowired
	private ManagerDao managerDao;
	@Override
	public List<Plan> findPlans(Plan plan) {
		return managerDao.findPlans(plan);
	}
	@Override
	public int addPlan(Plan plan) {
		return managerDao.addPlan(plan);
	}
	@Override
	public int deletePlanById(Integer plan_id) {
		// TODO Auto-generated method stub
		return managerDao.deletePlanById(plan_id);
	}
	@Override
	public int updatePlan(Plan plan) {
		return managerDao.updatePlan(plan);
	}
	@Override
	public Plan findPlanById(Integer id) {
		return managerDao.findPlanById(id);
	}
	@Override
	public int deletePlanByIds(Integer[] plan_ids) {
		
		return managerDao.deletePlanByIds(plan_ids);
	}
	@Override
	public int updatePlanStatusByIds(Integer[] plan_ids, Integer plan_status) {
		
		return managerDao.updatePlanStatusByIds(plan_ids,plan_status);
	}
}
